import 'package:json_annotation/json_annotation.dart';

part 'deposit_preferences.g.dart';

@JsonSerializable()
class DepositPreferences extends Object {
  @JsonKey(name: 'id')
  int id;

  @JsonKey(name: 'full_money')
  String fullMoney;

  @JsonKey(name: 'bonus')
  String bonus;

  @JsonKey(name: 'created_at')
  String createdAt;

  DepositPreferences(
    this.id,
    this.fullMoney,
    this.bonus,
    this.createdAt,
  );

  factory DepositPreferences.fromJson(Map<String, dynamic> srcJson) =>
      _$DepositPreferencesFromJson(srcJson);
}
